package model;

import java.util.List;

public class OrderModificationRequest {
    private ModificationType modifyType;
    private List<Item> modifiedItems;
    private String operatorId;
    private String ipAddress;
    public enum ModificationType {
        FULL_REPLACE,
        ADD_ITEM,
        REMOVE_ITEM,
        PARTIAL_MODIFY, UPDATE_QUANTITY
    }

    public OrderModificationRequest(ModificationType modifyType, List<Item> modifiedItems,
                                    String operatorId, String ipAddress) {
        this.modifyType = modifyType;
        this.modifiedItems = modifiedItems;
        this.operatorId = operatorId;
        this.ipAddress = ipAddress;
    }

    public ModificationType getModifyType() {
        return modifyType;
    }

    public void setModifyType(ModificationType modifyType) {
        this.modifyType = modifyType;
    }

    public List<Item> getModifiedItems() {
        return modifiedItems;
    }

    public void setModifiedItems(List<Item> modifiedItems) {
        this.modifiedItems = modifiedItems;
    }

    public String getOperatorId() {
        return operatorId;
    }

    public void setOperatorId(String operatorId) {
        this.operatorId = operatorId;
    }

    public String getIpAddress() {
        return ipAddress;
    }

    public void setIpAddress(String ipAddress) {
        this.ipAddress = ipAddress;
    }
}

